package com.example.pilipili.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import jakarta.validation.constraints.Size;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

@Data
public class CommentDto {


    // 表info
    private Integer id;
    private LocalDate time;
    private Integer parentId;
    @Size(max = 125)
    private String content ;
    @Size(max = 20)
    private String pname ;

    // 用户信息
    @Size(max = 20)
    private String uName ;
    @Size(max = 55)
    private String handUrl ;
    private int uid ;



    // 子评论
    List<CommentDto> child = new ArrayList<>();

    // 父评论
//    private CommentDto parent;


}
